let modifyName = document.getElementById("modifyName");
let modifyPsw = document.getElementById("modifyPsw");
let noviceGuidance = document.getElementById("noviceGuidance");
let productIntro = document.getElementById("productIntro");
let username = document.getElementById("username");

let localName = sessionStorage.getItem("user_name");
if (localName) {
    username.innerHTML = localName;
}

/*跳转至修改昵称页面*/
modifyName.addEventListener('click', () => {
    location.href = route.modifyName;
});

/*跳转至修改密码页面*/
modifyPsw.addEventListener('click', () => {
    location.href = route.modifyPsw;
});

/*跳转至新手指引页面*/
noviceGuidance.addEventListener('click', () => {
    location.href = route.noviceGuidance;
});

/*跳转至产品简介页面*/
productIntro.addEventListener('click', () => {
    location.href = route.productIntro;
});